<?php

declare(strict_types=1);

use Phinx\Seed\AbstractSeed;

class AddAdminUserOne extends AbstractSeed
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * https://book.cakephp.org/phinx/0/en/seeding.html
     */
    public function run(): void
    {
        $data = [
            [
                'user_name' => 'ctmon@ctmon.com',
                'email' => 'ctmon@ctmon.com',
                'password' => '5e508cd3a5d657b822fcadd7ca89d9f3',
                'add_time' => '2024-08-30 02:49:44',
                'agency_id' => 1,
                'salt' => 'nRFt',
                'ver' => 0,
                'create_time' => 1724986183,
                'update_time' => 1724986183,
                'delete_time' => 0,
            ]
        ];

        $users = $this->table('ctmon_adminuser');
        $users->insert($data)->save();
    }
}
